package kr.hkit.powerjava.chapter7.G;

import java.util.Scanner;

public class 카우프지수 {
	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		System.out.println("나이를 입력하시오.");
		int i=input.nextInt();
		double a,b;// 체중 & 키
		System.out.println("체중을 입력하시오.(단위 : Kg)");
		a=input.nextDouble();
		System.out.println("키를 입력하시오.(단위 : Cm");
		b=input.nextDouble();
		double c = b/100;
		double d = a/(c*c);
		
		
		if(i<=29){//연령
			if(d<=17.9){//저체중
				System.out.println("저체중");
			}else if(d<=23){
				System.out.println("표준체중");
			}else if(d<=30){
				System.out.println("과체중");
			}else
				System.out.println("비만");
		}else if(d<=18.4){//저체중
			System.out.println("저체중");
		}else if(d<=24){
			System.out.println("표준체중");
		}else if(d<=30){
			System.out.println("과체중");
		}else
			System.out.println("비만");]
	}

}
